psql -h localhost -U postgres -c "SELECT pg_terminate_backend(psa.procpid) FROM pg_stat_activity psa WHERE psa.datname = 'sigepa';"
dropdb -h localhost -p 5432 -U postgres -w 'sigepa'
createdb -h localhost -p 5432 -U postgres -w 'sigepa'
psql -h localhost -U postgres -d sigepa -f "./sigepa_captura_postCargaMasiva.sql"
psql -h localhost -U postgres -d sigepa -f "./prc_volcado_simulacion.sql"
psql -h localhost -U postgres -d sigepa -f "./tbi_password.sql"

# psql -h localhost -U postgres -c "SELECT pg_terminate_backend(psa.procpid) FROM pg_stat_activity psa WHERE psa.datname = 'sigepaScript';"
# dropdb -h localhost -p 5432 -U postgres -w 'sigepaScript'
# createdb -h localhost -p 5432 -U postgres -w 'sigepaScript'
# psql -h localhost -U postgres -d sigepaScript -f "./sigepa_captura_postCargaMasiva.sql"
# psql -h localhost -U postgres -d sigepaScript -f "./prc_volcado_simulacion.sql"
# psql -h localhost -U postgres -d sigepaScript -f "./tbi_password.sql"
